
#include "gpio.h"
#include "hc32_common.h"



void gpioShakeConfig(void)
{
    stc_port_init_t stcPortInit;
    MEM_ZERO_STRUCT(stcPortInit);
    stcPortInit.enPinMode = Pin_Mode_In;
    PORT_Init(SHAKE_PORT, SHAKE_PIN, &stcPortInit); 
}

void gpioLedConfig(void)
{
    stc_port_init_t stcPortInit;
    MEM_ZERO_STRUCT(stcPortInit);
    stcPortInit.enPinMode = Pin_Mode_Out;
	PORT_Init(LED_PORT, LED_PIN, &stcPortInit);
}
	
 

 
